<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<!-- HTML file produced from file: manual.tex --
 -- using Hyperlatex v 2.3.1 (c) Otfried Cheong--
 -- on Emacs 21.4 (patch 12) "Portable Code" XEmacs Lucid, Wed Jun  2 18:56:57 2004 -->
<HEAD>
<TITLE>Scheme 48 Manual -- Byte vectors</TITLE>

</HEAD><BODY BGCOLOR="#ffffff">
<EM>Scheme 48 Manual</EM> | <A HREF="s48manual.html#top_node">Contents</A> | In Chapter: <A HREF="s48manual_35.html">Libraries</A><BR>Previous: <A HREF="s48manual_39.html">Bitwise integer operations</A> | Next: <A HREF="s48manual_41.html">Sparse vectors</A>
<H2>Byte vectors</H2>
<P>These are homogeneous vectors of small integers (<I>0  &lt;= i  &lt;= 255</I>).
The functions that operate on them are analogous to those for vectors.
They are in the structure <CODE>byte-vectors</CODE>.
<P><UL><LI><CODE>(byte-vector?<I>&nbsp;value</I>)&nbsp;-&gt;&nbsp;<I>boolean</I></CODE><A NAME="1">&nbsp;</A>
<LI><CODE>(make-byte-vector<I>&nbsp;k&nbsp;fill</I>)&nbsp;-&gt;&nbsp;<I>byte-vector</I></CODE><A NAME="2">&nbsp;</A>
<LI><CODE>(byte-vector<I>&nbsp;i&nbsp;...</I>)&nbsp;-&gt;&nbsp;<I>byte-vector</I></CODE><A NAME="3">&nbsp;</A>
<LI><CODE>(byte-vector-length<I>&nbsp;byte-vector</I>)&nbsp;-&gt;&nbsp;<I>integer</I></CODE><A NAME="4">&nbsp;</A>
<LI><CODE>(byte-vector-ref<I>&nbsp;byte-vector&nbsp;k</I>)&nbsp;-&gt;&nbsp;<I>integer</I></CODE><A NAME="5">&nbsp;</A>
<LI><CODE>(byte-vector-set!<I>&nbsp;byte-vector&nbsp;k&nbsp;i</I>)</CODE><A NAME="6">&nbsp;</A>
</UL>
<P><P>
  
Previous: <A HREF="s48manual_39.html">Bitwise integer operations</A> | Next: <A HREF="s48manual_41.html">Sparse vectors</A></BODY></HTML>
